package com.itheima.objstream;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;

/*
演示字符流问题
 */
public class Demo01 {
    public static void main(String[] args) throws IOException {
        String username="zhangsan";
        String password="kunkun520";

        BufferedWriter writer = new BufferedWriter(new FileWriter("day13\\demo01.txt"));
        writer.write(username);
        writer.newLine();
        writer.write(password);
        writer.close();


    }
}
